home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 2 / LSD and 17bit Compendium Deluxe - Volume II.iso / a / prog / misc / gfront11.lha / GUIFront / Demos / ReadMe < prev    next >
Text File  |  1994-10-21  |  2KB  |  47 lines

  1.  
  2. Example programs
  3. ~~~~~~~~~~~~~~~~
  4. This directory contains a number of demonstration GUIs. It is my hope that
  5. these will help you get a grip on the basic concepts of GUIFront, and
  6. perhaps even provide a basis for creating your own GUIs.
  7.  
  8. Examples include the GUIs from several well-known programs, so you can
  9. compare GUIFront with the real thing. Often you will find two different
  10. versions of a GUI, the first being a semi-accurate replicate of the
  11. original GUI, and the second being my attempt at beautifying it a bit.
  12.  
  13. The simplest example is 'ThreeBut', a program which sets up three button
  14. gadgets below eachother. Even though the GUI is simple, it is still fully
  15. font sensitive and can be controlled with the preferences editor. The size
  16. of the 'ThreeBut' executable is a mere 1300 bytes, which tells something
  17. about the simplicity of creating GUIs with GUIFront.
  18.  
  19. Source
  20. ~~~~~~
  21. The source for all the examples can be found in the "Source" directory. An
  22. SCOPTIONS and smakefile for use with SAS/C is included, but I'll do a quick
  23. layout of the way the examples compile anyway.
  24.  
  25. Every example is composed of some startup code, 'mystartup.c', a general
  26. routine to set up and delete the GUI ('generic.c'), plus the data for the
  27. GUI itself. To compile an example (without using smake), compile
  28. 'Generic.c', 'mystartup.c' and the example file you're interested in, and
  29. then link them all together.  Since we're using our own startup code,
  30. remember to disable SAS/C's own startup code (in the LINK options).
  31.  
  32. Note some of the sources will give you a few harmless typecast warnings.
  33. Sorry, I was too lazy to fix this :-)
  34.  
  35. Distribution etc
  36. ~~~~~~~~~~~~~~~~
  37. The examples here are a part of the GUIFront distribution, and as described
  38. in the general Distribution document a couple of directory levels up, must
  39. be included (unmodified) when distributing GUIFront.
  40.  
  41. However, I am not copyrighting any of the code or the design itself, so if
  42. you can use any of it in your own programs, by all means, be my guest.
  43.  
  44. If you cook up some interesting GUI examples yourself, send them to me and
  45. I'll include them here.
  46.  
  47.